﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WCFServicesForCitrix.ConfigurationHandlers
{
    public class XenServerElement : System.Configuration.ConfigurationElement
    {
        public XenServerElement()
        {
        }
        [System.Configuration.ConfigurationProperty("NetBiosName",IsKey=true,IsRequired=true)]
        public string NetBiosName
        {
            get
            {
                return (string)this["NetBiosName"];
            }
        }
        [System.Configuration.ConfigurationProperty("IPAddress", IsRequired = true)]
        public string IPAddress
        {
            get
            {
                return (string)this["IPAddress"];
            }
        }
        [System.Configuration.ConfigurationProperty("Description", IsRequired = true)]
        public string Description
        {
            get
            {
                return (string)this["Description"];
            }
        }
        [System.Configuration.ConfigurationProperty("Username", IsRequired = false)]
        public string ServerUsername
        {
            get
            {
                return (string)this["Username"];
            }
        }
        [System.Configuration.ConfigurationProperty("Password", IsRequired = false)]
        public string ServerPassword
        {
            get
            {
                return (string)this["Password"];
            }
        }

    }
}
